package com.sbxBase.service;

import com.sbxBase.entity.LoginUser;
import com.common.entity.sbxBase.User;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface UserService {

    List<User> userList();

    User insert(User user);

    int deleteById(Integer id);

    User getUserById(String id);

    Page<User> getUserPage(User user, Integer pageIndex, Integer pageSize);


    User registerByEmail(User user);

    String confirmEmail(String email, String code);


    User userLogin(LoginUser loginUser, HttpServletResponse response);

    User tokenByUserInfo(String token);

    void userLogout();

    User getUserBySessionTokenId(String token);


    void managerUpdateUser(User user);

    void update(String nickName, String head, String password, String phone, String email);
}
